/* Navbar and Footer Background */
/* Navbar stays fixed at top */
.custom-navbar {
  background-color: rgba(0, 32, 18, 0.933);
  opacity: 0.80;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: top 0.3s ease;
}

/* Footer is static—appears only after page content */
.custom-footer {
  background-color: rgba(0, 32, 18, 0.933);
  position: static;
  width: 100%;
  height: 68px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 2rem; /* optional spacing above footer */
}

/* Nav Links */
.navbar-nav .nav-link {
  color: white;
  font-size: 16px;
  padding: 8px 4px;
  position: relative;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #33ff88 !important;
  text-decoration: underline;
}

.navbar-nav .nav-link.active {
  color: #33ff88 !important;
  font-weight: bold;
  position: relative;
  z-index: 1;
}

.navbar-nav .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1px; /* move the line closer */
  margin: 0 auto;
  width: 60%;
  height: 3px;
  background-color: #33ff88;
  border-radius: 2px;
}

.navbar-nav {
  gap: 28px;
}

/* Toggler */
.navbar-toggler {
  border-color: white;
}
.navbar-toggler-icon {
  background-image: url("data:image/svg  xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Auth Buttons (exact gradient pill style) */
.auth-buttons {
  display: flex;
  gap: 12px;
}

.auth-buttons a {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  background: linear-gradient(90deg, #00c9ff 0%, #92fe9d 100%);
  color: #002012;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: filter 0.2s ease, transform 0.2s ease;
}

.auth-buttons a:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
}

/* Responsive Auth Buttons */
@media (max-width: 768px) {
  .auth-buttons {
    flex-direction: column;
    align-items: center;
  }

  .auth-buttons a {
    width: auto;
    margin-bottom: 8px;
    text-align: center;
  }

  .auth-buttons a:last-child {
    margin-bottom: 0;
  }
}

/* Footer */
.custom-footer p:first-child br {
  display: none;
}

.custom-footer p {
  margin: 2px 0;      /* small top/bottom gap */
  font-size: 12px;    /* slightly smaller but readable */
  line-height: 1.2;
  color: white;
}

.social-icons {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.social-icons img {
  width: 20px;
  height: 20px;
}

/* Utility to hide elements */
.d-none {
  display: none !important;
}

/* Profile Icon */
.profile-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.user-initials {
  width: 32px;
  height: 32px;
  background-color: #4caf50;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  text-transform: uppercase;
  font-size: 14px;
}

.user-fullname {
  font-weight: 600;
}

#logoutWrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

#logoutBtn {
  display: inline-block;
  padding: 8px 24px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  background-color: #dc3545;
  color: white;
  border: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: filter 0.2s ease, transform 0.2s ease;
  margin: 0;
}

#logoutBtn:hover {
  filter: brightness(0.9);
  transform: translateY(-1px);
  background-color: #c82333;
}




/* ===== Notifications UI ===== */
/* ===== Notifications UI ===== */
.notif-bell {
  color: white;
  position: relative;
  margin-right: 10px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.notif-icon { font-size: 20px; line-height: 20px; }
.notif-badge {
  position: absolute; top: -6px; right: -6px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 10px; background: #ff4757; color: #fff;
  font-size: 11px; font-weight: 700; display: none; align-items: center; justify-content: center;
}
.notif-badge.show { display: inline-flex; }

.notif-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.35);
  display: none; z-index: 999;
}
.notif-overlay.show { display: block; }

.notif-drawer {
  position: fixed; top: 0; right: 0; height: 100vh; width: 380px;
  background: #fff; box-shadow: -6px 0 16px rgba(0,0,0,.2);
  transform: translateX(100%); transition: transform .25s ease;
  z-index: 1001; display: flex; flex-direction: column;
  color: black; /* <-- makes all text inside drawer black by default */
}
.notif-drawer.open { transform: translateX(0); }

.notif-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid #eee;
}
.notif-circle-count {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: #0d6efd; color: #fff; font-size: 12px; font-weight: 700;
}

.notif-list { flex: 1; overflow-y: auto; padding: 8px 0; }
.notif-item {
  padding: 12px 16px; border-bottom: 1px solid #f2f2f2; cursor: pointer;
  color: black; /* <-- ensures title and message are black */
}
.notif-item.unread { background: #f7fbff; }
.notif-item .title {
  font-weight: 600; margin-bottom: 4px;
  color: black; /* <-- ensures title text is black */
}
.notif-item .message {
  font-size: 14px; white-space: pre-line;
  color: black; /* <-- ensures message text is black */
}
.notif-item small { color: #6c757d; }

.notif-empty {
  text-align: center; color: #6c757d; padding: 40px 16px;
}
.notif-empty img { width: 72px; opacity: .5; margin-bottom: 10px; }

.notif-footer {
  display: flex; align-items: center; gap: 12px;
  border-top: 1px solid #eee; padding: 10px 12px;
}
.notif-footer a { text-decoration: none; font-weight: 600; color: black; }
